﻿using fabao.SqlSugar.Entities;

namespace Fabao.Shared.Domain
{
    public abstract class AggregateRootEntity : BaseEntity, IAggregateRoot, ISoftDelete
    {
        public int isDel { get; set; }

        public virtual void SoftDelete()
        {
            this.isDel = 1;
        }
    }

    /// <summary>
    /// 雪花型ID的聚合根实体
    /// </summary>
    public abstract class AggregateRootEntitySnow : BaseEntitySnow, IAggregateRoot, ISoftDelete
    {
        public int isDel { get; set; }

        public virtual void SoftDelete()
        {
            this.isDel = 1;
        }
    }
}
